package cn.com.ebidding.business.entity;

import cn.com.ebidding.business.enums.UserStatusEnum;
import cn.com.ebidding.framework.object.AbstractBO;
import cn.com.ebidding.persistence.beans.SysUserGroup;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.Date;

public class UserGroup extends AbstractBO {
    private SysUserGroup userGroup;

    public UserGroup() {
        this.userGroup = new SysUserGroup();
    }

    public UserGroup(SysUserGroup userGroup) {
        this.userGroup = userGroup;
    }


    @JsonIgnore
    public SysUserGroup getUserGroup() {
        return this.userGroup;
    }

    public Long getId() {
        return this.userGroup.getId();
    }

    public void setId(Long id){
        this.userGroup.setId(id);
    }

    public String getName() {
        return this.userGroup.getName();
    }

    public void setName(String name) {
        this.userGroup.setName(name);
    }


    public Integer getStatus() {
        return this.userGroup.getStatus();
    }

    public void setStatus(Integer status) {
        this.userGroup.setStatus(status);
    }

    public Long getCreateUser() {
        return this.userGroup.getCreateUser();
    }

    public void setCreateUser(Long createUser) {
        this.userGroup.setCreateUser(createUser);
    }

    public Long getUpdateUser() {
        return userGroup.getUpdateUser();
    }

    public void setUpdateUser(Long updateUser) {
        this.userGroup.setUpdateUser(updateUser);
    }

    public Date getCreateTime() {
        return this.userGroup.getCreateTime();
    }

    public void setCreateTime(Date regTime) {
        this.userGroup.setCreateTime(regTime);
    }

    public Date getUpdateTime() {
        return this.userGroup.getUpdateTime();
    }

    public void setUpdateTime(Date updateTime) {
        this.userGroup.setUpdateTime(updateTime);
    }

    public UserStatusEnum getStatusEnum() {
        return UserStatusEnum.get(this.userGroup.getStatus());
    }

    public Long getUserId() {
        return userGroup.getUserId();
    }

    public void setUserId(Long userId) {
        this.userGroup.setUserId(userId);
    }

    public Long getGroupId() {
        return this.userGroup.getGroupId();
    }

    public void setGroupId(Long groupId) {
        this.userGroup.setGroupId(groupId);
    }
}
